package com.esun.payment_api.service;

import com.esun.common.api.CommonResult;
import com.esun.common.bean.PageRequest;
import com.esun.payment_api.domain.Company;
import com.esun.payment_api.domain.Department;
import org.springframework.stereotype.Service;

@Service
public interface UnitService {
    CommonResult getCompanyPage(PageRequest pageRequest);

    CommonResult addCompany(Company company);

    CommonResult editCompany(Company company);

    CommonResult deleteCompany(Short companyId);

    CommonResult getDepartmentPage(PageRequest pageRequest);

    CommonResult addDepartment(Department department);

    CommonResult editDepartment(Department department);

    CommonResult deleteDepartment(Short departmentId);
}
